﻿<script type="text/javascript">
    $(function () {
        $("input[name=t0_typ]").change(function () {
            //alert($("input[name=c_type]:checked").val());
            $(".l-verify-tip").hide();
            var v = $("input[name=t0_typ]:checked").val();
            $("#frmMain")[0].reset();
            $("input[name=t0_typ][value=" + v + "]").attr("checked", true); 
            if ($("input[name=t0_typ]:checked").val() == 1) {
                $("#dvCorporation").show();
                $("#dvPersonal").hide();
                $("#dvCorporationOwner").hide();
                $("#dvCorporationName").show();
            }
            else if ($("input[name=t0_typ]:checked").val() == 2) {
                $("#dvCorporation").show();
                $("#dvPersonal").hide();
                $("#dvCorporationOwner").show();
                $("#dvCorporationName").hide();
            }
            else if ($("input[name=t0_typ]:checked").val() == 3) {
                $("#dvCorporation").hide();
                $("#dvPersonal").show();
            }
        })
    })
</script>
<form id="frmMain" class="form-horizontal" method="post" autocomplete="off" >
<fieldset>
    <div class="control-group" style="margin-bottom:15px;">
        <div class="controls" style="margin: 12px 20px 0 40px;padding:10px 0 2px 30px;">
            <label class="radio inline">
                <input type="radio" value="1" name="t0_typ" checked="checked"/>
                企业贷款&nbsp;&nbsp;&nbsp;
            </label>
            <label class="radio inline">
                <input type="radio" value="2" name="t0_typ" />
                个体工商户贷款
            </label>
            <label class="radio inline">
                <input type="radio" value="3" name="t0_typ" />
                个人贷款
            </label>
        </div>
    </div>
    <div id="dvPersonal" style="display: none;">
        <div class="control-group">
            <label for="t1_person_name" class="control-label">
                <span>*</span>姓名：</label>
            <div class="controls">
                <input type="text" id="t1_person_name" name="t1_person_name" class="isChinese required" minlength="2" />
            </div>
        </div>
        <div class="control-group">
            <label for="" class="control-label">
                <span>*</span>所在地区：
            </label>
            <div class="controls">
                <select class="select_box required province" style="width:66px" name="t1_address_province" id="t1_address_province" title="">
                </select>
                &nbsp;
                <select class="select_box required city" style="width:66px" name="t1_address_city" id="t1_address_city" title="">
                </select>
                &nbsp;
                <select class="select_box required district" style="width:66px" name="t1_address_district" id="t1_address_district" title="">
                </select>
            </div>
        </div>
        <div class="control-group">
            <label for="t1_address_remark" class="control-label">
                &nbsp;
            </label>
            <div class="controls">
                <input type="text" name="t1_address_remark" id="t1_address_remark" class="inputText" />
            </div>
        </div>
        <div class="control-group">
            <label for="t1_business_type" class="control-label">
                <span>*</span>单位类型：
            </label>
            <div class="controls">
                <label>
                    <select name="t1_business_type" id="t1_business_type" class="inputText required">
                        @Html.Partial("~/Views/Shared/selectControl.ascx", HanhuaMicroCredit.BLL.IbddBLL.GetList(1004, true))
                    </select>
                </label>
            </div>
        </div>
        <div class="control-group">
            <label for="t1_monthly_income" class="control-label">
                <span>*</span>税前月收入：
            </label>
            <div class="controls">
                <div class="input-append">
                    <input type="text" name="t1_monthly_income" id="t1_monthly_income" class="inputText digits required" style="width:183px;" /><span
                        class="add-on">元</span>
                </div>
            </div>
        </div>
        <div class="control-group">
            <label for="t1_loan_amount" class="control-label">
                <span>*</span>贷款金额：
            </label>
            <div class="controls">
                <div class="input-append">
                    <input type="text" name="t1_loan_amount" id="t1_loan_amount" class="inputText digits required" style="width:183px;" /><span
                        class="add-on">元</span>
                </div>
            </div>
        </div>
        <div class="control-group">
            <label for="t1_loan_period" class="control-label">
                <span>*</span>贷款期限：
            </label>
            <div class="controls">
                <div class="input-append">
                    <input type="text" name="t1_loan_period" id="t1_loan_period" class="inputText digits required" max="99" style="width:183px;" /><span
                        class="add-on">月</span>
                </div>
            </div>
        </div>
        <div class="control-group">
            <label for="t1_loan_use" class="control-label">
                <span>*</span>贷款用途：
            </label>
            <div class="controls">
                <select name="t1_loan_use" id="t1_loan_use" class="inputText required">
                    @Html.Partial("~/Views/Shared/selectControl.ascx", HanhuaMicroCredit.BLL.IbddBLL.GetList(1002, true))
                </select>
            </div>
        </div>
        <div class="control-group">
            <label for="t1_contact_phone" class="control-label">
                <span>*</span>手机号码：
            </label>
            <div class="controls">
                <input type="text" name="t1_contact_phone" id="t1_contact_phone" class="inputText isMobile required" />
            </div>
        </div>
        <div class="control-group">
            <label for="t1_contact_phone2" class="control-label">
                <span>&nbsp;</span>备用号码：
            </label>
            <div class="controls">
                <input type="text" name="t1_contact_phone2" id="t1_contact_phone2" class="inputText isPhone" minlength="7" maxlength="13" />
            </div>
        </div>
        <div class="control-group">
            <label for="t1_mail" class="control-label">
                <span>&nbsp;</span>邮箱地址：
            </label>
            <div class="controls">
                <input type="text" name="t1_mail" id="t1_mail" class="inputText email" />
            </div>
        </div>
    </div>
    <div id="dvCorporation">
        <div class="control-group" id="dvCorporationName" >
            <label for="t0_corporation_name" class="control-label">
                <span>*</span>公司名称：
            </label>
            <div class="controls" style="padding-left:20px;">
                <input type="text" name="t0_corporation_name" id="t0_corporation_name" class="inputText required" minlength="4" />
            </div>
        </div>
        <div class="control-group" id="dvCorporationOwner" style="display: none;">
            <label for="t0_corporation_owner" class="control-label">
                <span>*</span>企业主姓名：
            </label>
            <div class="controls">
                <input type="text" name="t0_corporation_owner" id="t0_corporation_owner" class="inputText isChinese required" minlength="2"/>
            </div>
        </div>
        <div class="control-group">
            <label for="" class="control-label">
                <span>*</span>经营地址：
            </label>
            <div class="controls">
                <select class="select_box required province" style="width:66px" name="t0_address_province" id="t0_address_province" title="">
                </select>
                &nbsp;
                <select class="select_box required city" style="width:66px" name="t0_address_city" id="t0_address_city" title="">
                </select>
                &nbsp;
                <select class="select_box required district" style="width:66px" name="t0_address_district" id="t0_address_district" title="">
                </select>
            </div>
        </div>
        <div class="control-group">
            <label for="t0_address_remark" class="control-label">
                &nbsp;
            </label>
            <div class="controls">
                <input type="text" name="t0_address_remark" id="t0_address_remark" class="inputText" />
            </div>
        </div>
        <div class="control-group">
            <label for="t0_business_type" class="control-label">
                <span>*</span>从事行业：
            </label>
            <div class="controls">
                <label>
                    <select class="inputText required " name="t0_business_type" id="t0_business_type">
                        @Html.Partial("~/Views/Shared/selectControl.ascx", HanhuaMicroCredit.BLL.IbddBLL.GetList(1003, true))
                    </select>
                </label>
            </div>
        </div>
        <div class="control-group">
            <label for="t0_annual_sales" class="control-label">
                <span>*</span>年销售额：
            </label>
            <div class="controls">
                <div class="input-append">
                    <input type="text" name="t0_annual_sales" id="t0_annual_sales" class="inputText digits required" style="width:183px;"/><span
                        class="add-on">元</span>
                </div>
            </div>
        </div>
        <div class="control-group">
            <label for="t0_company_age" class="control-label">
                <span>*</span>经营年限：
            </label>
            <div class="controls">
                <div class="input-append">
                    <input type="text" name="t0_company_age" id="t0_company_age" class="inputText number required" style="width:183px;"/><span
                        class="add-on">年</span>
                </div>
            </div>
        </div>
        <div class="control-group">
            <label for="t0_loan_amount" class="control-label">
                <span>*</span>贷款金额：
            </label>
            <div class="controls">
                <div class="input-append">
                    <input type="text" name="t0_loan_amount" id="t0_loan_amount" class="inputText digits required" style="width:183px;" /><span
                        class="add-on">元</span>
                </div>
            </div>
        </div>
        <div class="control-group">
            <label for="t0_loan_period" class="control-label">
                <span>*</span>贷款期限：
            </label>
            <div class="controls">
                <div class="input-append">
                    <input type="text" name="t0_loan_period" id="t0_loan_period" class="inputText required digits" max="99" style="width:183px;" /><span
                        class="add-on">月</span>
                </div>
            </div>
        </div>
        <div class="control-group">
            <label for="t0_loan_use" class="control-label">
                <span>*</span>贷款用途：
            </label>
            <div class="controls">
                <select class="inputText required " name="t0_loan_use" id="t0_loan_use">
                    @Html.Partial("~/Views/Shared/selectControl.ascx", HanhuaMicroCredit.BLL.IbddBLL.GetList(1001, true))
                </select>
            </div>
        </div>
        <div class="control-group">
            <label for="t0_contact_phone" class="control-label">
                <span>*</span>手机号码：
            </label>
            <div class="controls">
                <input type="text" name="t0_contact_phone" id="t0_contact_phone" class="inputText isMobile required" />
            </div>
        </div>
        <div class="control-group">
            <label for="t0_contact_phone2" class="control-label">
                <span>&nbsp;</span>备用号码：
            </label>
            <div class="controls">
                <input type="text" name="t0_contact_phone2" id="t0_contact_phone2" class="inputText isPhone" minlength="7" maxlength="13" />
            </div>
        </div>
    </div>
    <div class="control-group">
        <label for="" class="control-label" style="margin-left:25px;text-align:left; font-size:11px;width:220px;*width:188px;font-weight:normal;overflow:hidden;">
        <input type="checkbox" id="chkAgree2" style="border: 0 none;display: inline;width: 20px;padding-left:2px;" /> 
        <span style="color:#777;">同意遵守</span> 
        <a href="javascript:void(0);" onclick="return showProtocol();" style="color: #027AC8; text-decoration: underline;"><b>用户协议</b></a>
        
        </label>
        <div class="controls" style="padding-left:32px;color:#999;*width:100px;*padding-left:20px;">
                
            <input type="image" src="/images/submit.jpg" id="btnSubmit" style="margin-left: 5px;*margin-left: 35px;_margin-left: 5px;display:inline;width:100px;height:30px;border:0;"/>

                @*<button id="modaltest" type="button">测试modal</button>*@
        </div>
    </div>
     <div class="control-group" style="font-size:11px;margin-left:30px;color:#999;">
          注: <span style="color:#C5000A;">*</span> 项为必填信息
     </div>
</fieldset>
</form>
